package com.jk.bgmainconsumer.service;

import com.jk.bgmainconsumer.entity.DiscountEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@FeignClient("bgdiscountprovider")
@Component
public interface DiscountService {

    @RequestMapping("discount/queryUserDiscount")
    List<DiscountEntity> queryUserDiscount();

    @RequestMapping("discount/addDiscount")
    void addDiscount(@RequestBody DiscountEntity discountEntity);
}
